package chuangjian.factory.demo1;

/**
 * Description：TODO
 * Author：zwenzhi
 * Date：2023/11/17 16:57
 */
public class Client {
    public static void main(String[] args) {
        DiyProductFactory diyProductFactory = new DiyProductFactory();
        ElectricProductFactory electricProductFactory = new ElectricProductFactory();
        Product product = diyProductFactory.createProduct();
        Product product1 = electricProductFactory.createProduct();
        product.display();
        product1.display();
    }
}
